<template>
    <el-main>
        <el-main class="ep-body">
            <epl-top-bar :datas="{formData:form}" showPerson psTagType="PERSON_PENSION_QUERY"
                         personType="PERSON_ALL_EXACT">
            </epl-top-bar>
            <epl-userMessage dataType="person" idCount="3">
                <template slot-scope="scope">
                </template>
            </epl-userMessage>
            <el-card class="ep-card">
                <el-form :model="form" ref="form" :rules="rules">
                    <el-row>
                        <ep-title>请输入养老待遇调整信息</ep-title>
                        <ep-table :data="tableData1" border rowDbClick>
                            <ep-table-column editor="index" min-width="100" header="序号"></ep-table-column>
                            <ep-table-column sortable date-type="date" editor="date" format="yyyyMM" value-format="yyyyMM" edited name="aae003" header="对应所属期"></ep-table-column>
                            <ep-table-column sortable editor="text"  name="aae042"  header="事业养老待遇水平"></ep-table-column>
                            <ep-table-column sortable editor="number" edited name="aae019" header="职教幼教待遇金额"></ep-table-column>
                            <ep-table-column sortable editor="number" edited name="dfsqbt" header="地方社区补贴"></ep-table-column>
                            <ep-table-column sortable editor="number" edited name="ycxflf" header="一次性福利费"></ep-table-column>
                            <ep-table-column sortable editor="number" edited name="aae019s" header="企业发放金额"></ep-table-column>
                            <ep-table-column sortable editor="text"  name="aae019c" header="差额"></ep-table-column>
                            <ep-table-column header="操作" width="100" editor="button">
                                <template slot-scope="scope">
                                    <el-button type="text" size="mini" @click="deleteCurrentRow01(scope.row)">删除</el-button>
                                </template>
                            </ep-table-column>
                        </ep-table>
                    </el-row>
                    <el-row type="flex" justify="center">
                        <ep-button size="medium" type="text" name="+增加" id="doAdd01" :datas="{tableData1: tableData1}"></ep-button>
                    </el-row>
                    <el-row :gutter="10">
                        <ep-textarea label-width="50" :rows="3" colspan="24" label="备注" name="aae013" :property="form.aae013"
                                     placeholder="请输入备注" p="E" :datas="{formData:form}"></ep-textarea>
                    </el-row>
                    <el-row type="flex" justify="center">
                        <ep-saveButton id="doSave" type="primary" top="20" bottom="20" ref="save" @formValidate="formValidate"
                                       :validate="['form']"
                                       :datas="{formData: form,panel:panel,tableData1:tableData1,tableData2:tableData2,tableData3:tableData3}"></ep-saveButton>
                    </el-row>
                </el-form>
                <el-tabs v-model="activeName2" type="card">
                    <el-tab-pane label="调整前待遇信息" name="1">
                        <ep-table :data="tableData2" edited="true" :pager="20" :titleFilter="table1">
                            <ep-table-column sortable editor="text" name="aaa036" header="待遇项目"></ep-table-column>
                            <ep-table-column sortable editor="text" name="aaa037" header="待遇项目名称"></ep-table-column>
                            <ep-table-column sortable editor="text" name="aae041" header="开始年月"></ep-table-column>
                            <ep-table-column sortable editor="text" name="aae019" header="待遇金额"></ep-table-column>
                        </ep-table>
                    </el-tab-pane>
                    <el-tab-pane label="调整后待遇信息" name="2">
                        <ep-table :data="tableData3" edited="true" :titleFilter="table2" :pager="20">
                            <ep-table-column sortable editor="text" name="aaa036" header="待遇项目"></ep-table-column>
                            <ep-table-column sortable editor="text" name="aaa037" header="待遇项目名称"></ep-table-column>
                            <ep-table-column sortable editor="text" name="aae041" header="开始年月"></ep-table-column>
                            <ep-table-column sortable editor="text" name="aae019" header="待遇金额"></ep-table-column>
                        </ep-table>
                    </el-tab-pane>
                </el-tabs>
            </el-card>
        </el-main>
    </el-main>
</template>

<script src="../js/EducatorsTreamentChangeJS.js"></script>
